﻿#region Namespace
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.OleDb;
using eSilky.VO;
using eSilky.DAL;
#endregion

namespace eSilky.BLL
{
    public class Product
    {
        #region Get A Product
        /// <summary>
        ///  Get details of a product
        /// </summary>
        /// <param name="pdt">Product code</param>
        /// <returns>Dataset</returns>
        public DataSet GetAProduct(int productid)
        {
            DAL.Product pdt = new DAL.Product();
            return pdt.GetAProduct(productid);
        }
        #endregion

        #region Get All Product In A Category
        /// <summary>
        ///  Get detais of all the products of a category 
        /// </summary>
        /// <param name="groupid"></param>
        /// <param name="categoryid"></param>
        /// <returns></returns>
        public DataSet  GetAllProduct(int categoryid)
        {
            DAL.Product pdt = new DAL.Product();
            return pdt.GetAllProduct(categoryid);
        }
        #endregion

        #region Add a new product
        public void GetAllProduct(VO.Product pdt)
        {

        }
        #endregion

        #region Update a product

        #endregion

        #region Remove a product

        #endregion
    }
}